<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/circle/circlemessagelist" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>

  <div class="page">
    <div class="page-hd">
      <h1>播报信息管理</h1>
    </div>
    <div class="navbar">
      <ul class="nav">
        <li class="active"><a href="{:URL('admin/Circle/circlemessagelist')}">播报管理</a>
        </li> 
        <li <eq name="weibo_tab" value="cur">class="active"</eq>><a href="{:URL('admin/Content/weibo')}">{$Think.lang.weibo}</a>
        </li>
        <li <eq name="recycle_tab" value="cur">class="active"</eq>><a href="{:URL('admin/Content/weibo','recycle=1')}">{$Think.lang.recycle}</a>
        </li>
      </ul>
    </div>
    <div class="filterbar">
      <form id="search" action="{:URL('admin/Circle/circlemessagelist')}" method="post">
        <label for="">选择商圈</label>
        <select id="circleid" name="circleid">
          <option value=""> - </option>
          <volist name="circlelist" id="vo">
            <option value="{$vo['circleid']}" <eq name="vo['circleid']" value="$circleid">selected</eq> >{$vo['circlename']}</option>
          </volist>
        </select>
        <label for="">用户名称</label>
        <input type="text" name="username" id="username" value="{$username}" class="input-text">
        <button type="submit" class="btn-search" id="J_search" title="{$Think.lang.search}">
          <i class="icon-search"></i>
        </button>
      </form>
    </div>
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="">
                <input type="checkbox" class="toggle-all" />
              </th>
              <th style="">商圈名称</th>
              <th style="">消息内容</th>
              <th style="">发布人</th>
              <th style="">发布地点</th>
              <th style="">{$Think.lang.ctime}</th>
              <th style="">{$Think.lang.operating}</th>
            </tr>
          </thead>
          <tbody>
            <volist name="list" id="vo">
              <tr data-id="{$vo['messageid']}" class="toggle">
                <td>
                  <input type="checkbox" name="checkbox" class="toggle" value="{$vo['messageid']}" />
                </td>
                <td style="width:100px;">{$vo['circlename']}</td>
                <td style="width:600px; word-break:break-all;">
                  {$vo['messagedata']} <br>
	              <ul class="feed-media-list">
				    <li>
				      <div class="thumbs">
				        <volist name="vo['messagepics']" id="pics">
				          <lt name='i' value='10'>
						  <if condition="strpos($pics['picurl'],'{upyun}')!== false">
							<php>$picurl = str_replace("{upyun}",$upyundomain,$pics[picurl]);</php>
							<eq name="i" value="6"><br> </eq>
							<img src="{$picurl}!100x100" alt="" width="90" height="90" />
						  </if>
					      </lt>
						</volist>
				      </div>
				    </li>
				  </ul>
                </td>
                <td>{$vo['username']}</td>
                <td>{$vo['locname']}</td>
                <td>{$vo['datetime']}</td>
                <td>
                  <a href="javascript:;" class="A_del">{$Think.lang.shield}</a>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>

      <div class="datas-ft">
        <div class="actions">
          <a href="{:URL('admin/Circle/addCircleMessage')}" class="btn">添加播报信息</a>
          <a href="#" class="btn" id="J_del">屏蔽播报信息</a>
        </div>
        <div class="pager">{$page}</div>
      </div>

    </div>
  </div>
</body>

</html>
